from applications.extensions import ma
from applications.models.task_model import Task

class TaskSchema(ma.SQLAlchemyAutoSchema):
    class Meta:
        model = Task
        load_instance = True  # 反序列化时自动创建模型实例

    created_at = ma.DateTime(format='%Y-%m-%d %H:%M:%S')
    